#!/bin/bash
cd unpackage/dist/build/
rm -rf dist.tar
tar -cvf dist.tar h5/*
scp -P 22 dist.tar root@47.116.140.26:/home/html/
ssh -p 22 -Tq root@47.116.140.26 << remotessh
cd /home/html/
rm -rf /home/html/jk-spin-app/*
tar -xvf dist.tar
cd h5
mv * ../jk-spin-app/
cd ..
rm -rf dist.tar
rm -rf h5
exit
remotessh
